<template>
  <div class="analysis">
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="User" name="first">
        <User></User>
      </el-tab-pane>
      <el-tab-pane label="Config" name="second">
        <Config></Config>
      </el-tab-pane>
      <el-tab-pane label="活动分析" name="third">
        <Role></Role>
      </el-tab-pane>
      <el-tab-pane label="渠道分析" name="fourth">
        <analysis></analysis>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script lang="ts" setup>
import Role from './Role.vue';
import analysis from './analysis.vue';
import Config from './Config.vue';
import User from './User.vue';
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>

<style scoped>
.demo-tabs>.el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}

.analysis {
  padding: 0 10px;
}
</style>